package cn.phub.org.mapper;

import cn.phub.basic.mapper.BaseMapper;
import cn.phub.basic.vo.ShopVo;
import cn.phub.org.domain.Shop;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jijie
 * @since 2022-03-28
 */
public interface ShopMapper extends BaseMapper<Shop> {
    /**
     * 通过名称查询店铺
     * @param name
     * @return
     */
    Shop loadByName(String name);

    /**
     * 查询每种状态对应的店铺数量
     * @return
     */
    List<ShopVo> loadStateStatistics();

}
